﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSEPT
{
    public class User
    {
        public User()
        {
            init(0, string.Empty, string.Empty, -1, 0);
        }
        public User(int id)
        {
            init(id, string.Empty, string.Empty, -1, 0);
        }
        private void init(int id, string uname, string email, int secnum, int credits)
        {
            ID = id;
            UserName = uname;
            Email = email;
            SecurityNumber = secnum;
            Credits = credits;
        }
        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _UserName;

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        private int _SecurityNumber;

        public int SecurityNumber
        {
            get { return _SecurityNumber; }
            set { _SecurityNumber = value; }
        }
        private string _email;

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        private int _Credits;

        public int Credits
        {
            get { return _Credits; }
            set { _Credits = value; }
        }
        
    }
}
